package com.gange.feignclient;

import com.gange.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("API-USERS")
public interface UserFeignClient {
    @GetMapping("/user/selectOne/{id}")
    public User selectById(@PathVariable("id") int id);
    @GetMapping("/user/selectName/{name}")
    public List<User> selectByName(@PathVariable("name") String name);
}
